
var dataManager = require("data_manager");
cc.Class({
    extends: cc.Component,

    properties: {

    },

    onClickExplore: function() {
        // 开始冒险
        
    },

    sendCoin: function() {
        var self = this;
        console.log(">>>sendCoin>>")
        var amount = parseInt(document.getElementById("amount").value);
        var receiver = document.getElementById("receiver").value;
    
        this.showTips("Initiating transaction... (please wait)");
        dataManager.request();
    },

    showTips: function(message) {
        console.log("show tips." + message);
    }
})